/**
 * Created by Administrator on 2016/8/6.
 */
/**
 * Created by Administrator on 2016/8/5.
 */
//加载web框架
var express = require('express');
//加载路由文件
var routes = require('./route/router');
//创建应用
var app = express();

//设置静态资源
app.use(express.static('www'));


//把所有的路由文件都放在route文件夹下的router.js中去
routes(app);

app.listen(8000,function(){
    console.log('node is ok&8000');
});
